package com.hxminer.hxwebs.repository;

import com.hxminer.hxwebs.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Author YRG
 * Created by on 2018/5/7.
 * Describe
 */


public interface UserRepository extends JpaRepository<User, Integer> {

    //通过用户名来获取用户信息
//    public List<User> findByListId(Integer id);

//    @Query("from User u where u.name=:name")
//    public List<User> findUser(@Param("name") String name);

//    public List<User> findByNameAndPassword(String name,String password);
}
